package com.atguigu.campusintelligentassistantsystem.repository;

import com.atguigu.campusintelligentassistantsystem.entity.LeaveApply;
import com.atguigu.campusintelligentassistantsystem.entity.LeaveStatus;
import com.atguigu.campusintelligentassistantsystem.entity.LeaveType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LeaveApplyRepository extends JpaRepository<LeaveApply, Long> {
    List<LeaveApply> findByStudentId(Long studentId);
    List<LeaveApply> findByStatus(LeaveStatus status);
    List<LeaveApply> findByLeaveType(LeaveType leaveType);
}